﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using PWS;

namespace PartyWorkSupervise.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class PWSController : ControllerBase
    {
            private readonly PWSDbcontext DB;
            public PWSController(PWSDbcontext context)
            {
                DB = context;
            }
            [HttpGet]
            public List<Psw> GetAll()
            {
                return DB.Psw.ToList();
            }

        }
    }

